package server.console.groups.setting;

import com.alee.extended.panel.GroupPanel;

import java.awt.*;

public class StarForceConfigGroup extends AbstractConfigGroup {
    StarForceConfigGroup(ConfigPanel owner) {
        super(owner, "星之力设置");
    }

    @Override
    public Component getPreview() {
        TitleWebPanel titleWebPanel1 = new TitleWebPanel("常规设置 (具体介绍请查看 config/starforce.properties)");
        titleWebPanel1.add(new GroupPanel(false,
                new ConfigComponent("几星后开始出现下降概率", "starforce.startdown"),
                new ConfigComponent("几星后开始出现损坏概率", "starforce.startcurse"),
                new ConfigComponent("失败损坏后会下降几星", "starforce.cursereducecount"),
                new ConfigComponent("连续失败几次进入机会时间", "starforce.bonustime")
        ).setMargin(5));
        return titleWebPanel1;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
